/*
 * 描述： TUEF Petition Segment Service实现类
 * 修改人： Weng.weng
 * 修改时间： May 6, 2019
 * 项目： los-core
 */
package com.aeasycredit.credit.tuef.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aeasycredit.credit.tuef.dao.TuefPetitionDao;
import com.aeasycredit.credit.tuef.model.TuefPetition;
import com.aeasycredit.credit.tuef.model.TuefPetitionQuery;
import com.aeasycredit.credit.tuef.service.TuefPetitionService;

/**
 * TUEF Petition Segment Service实现类<br>
 * 
 * @author Weng.weng
 * @version [版本号, May 6, 2019]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Service
public class TuefPetitionServiceImpl implements TuefPetitionService {
    
    @Autowired
    private TuefPetitionDao tuefPetitionDao;

    @Override
    public List<TuefPetition> getListByTuefBasicId(String tuefBasicId) {
        if (tuefBasicId == null) {
            throw new IllegalArgumentException("tuefBasicId不能為空");
        }
        
        TuefPetitionQuery query = new TuefPetitionQuery();
        query.setTuefBasicId(tuefBasicId);
        return tuefPetitionDao.getList(query);
    }
    
}
